import { CrossGuildWarScheduleBase } from "./base/CrossGuildWarScheduleBase";
import { Language } from "../../../../../extend/language/Language";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { ObjCreate } from "../../common/ObjCreate";
import { CrossGuildWarScheduleRankRender } from "../render/CrossGuildWarScheduleRankRender";
import { GameProxy } from "../../../mvc/GameProxy";
//class CrossGuildWarScheduleRank
    
    export  class CrossGuildWarScheduleRank extends CrossGuildWarScheduleBase
    {
        constructor()
        {
            super();
            return;
        }

        protected /* override */ createDisposedChildrenImpl(): void
        {
            super.createDisposedChildrenImpl();
            var loc1=Language.getString(80572).split(",");
            var loc2=GlobalStyle.textFormat1;
            loc2.color = 16776960;
            ObjCreate.createGTextField(String(loc1[0]), 45, 8, 200, 20, this, loc2);
            ObjCreate.createGTextField(String(loc1[1]), 197, 8, 200, 20, this, loc2);
            ObjCreate.createGTextField(String(loc1[2]), 370, 8, 200, 20, this, loc2);
            ObjCreate.createGTextField(String(loc1[3]), 537, 8, 200, 20, this, loc2);
            ObjCreate.createGTextField(String(loc1[4]), 700, 8, 200, 20, this, loc2);
            _list = ObjCreate.createTileList(0, 28, 800, 458, this);
            _list.columnWidth = 800;
            _list.rowHeight = 42;
            _list.setStyle("cellRenderer", CrossGuildWarScheduleRankRender);
            return;
        }

        protected /* override */ pageChangeHandler(arg1: Object /* flash.events.Event */): void
        {
            GameProxy.copy.crossGuildWarGetRankInfos(_pageSelector.currentPage, PageSize);
            return;
        }
    }
